package com.powernode.commons;

public enum  ResultEnum {
    SUCCESS(200,"成功"),
    FAILURE(1000,"失败"),
    NOT_FOUND(404,"未找到数据"),
    ADD_DATA_FAILURE(1001,"添加失败"),
    EDIT_DATA_FAILURE(1002,"修改失败"),
    DEL_DATA_FAILURE(1003,"删除失败"),
    ;
    private int code;
    private String msg;

    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
